package com.study.model.jdao;


import java.util.List;

import org.springframework.data.repository.CrudRepository;
import com.study.model.pojo.Anniversary;
import com.study.model.pojo.Dictionary;
import com.study.model.pojo.Customer;

/**
 * 纪念日dao层
 * @author wjl
 *
 */
public interface IAnniversaryDAO extends CrudRepository<Anniversary, Integer>{

	/*
	 * 根据id查询纪念日
	 */
	public Anniversary findByAnnId(int annId);
	
	//查询所有
	 public List<Anniversary> findAll();
	 
	
	 /**
	  * 根据纪念日类型查询
	  */
	 List<Anniversary> findByDictionary(Dictionary dictionary);
	 

}
